package com.graphqljava.demo.gql.service;

import com.graphqljava.demo.gql.entity.PersonInfo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

/**
 * com.graphqljava.demo.gql
 *
 * @author Oscar.Chen
 * @date 6/16/2020 12:03 AM
 */
public interface PersonInfoService {
    Optional<PersonInfo> findPersonInfoById(String id);
    List<PersonInfo> allPersonInfos();
    List<PersonInfo> allPersonInfosByPersonId(String personId);
    List<PersonInfo> allPersonInfosByProjectId(String projectId);
}
